package com.competition.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;


@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "user")
public class User {

    @TableId
    @Id
    @Column(name = "user_id", nullable = false, length = 255)
    private String userId; // 用户openid

    @Column(name = "user_name", length = 255)
    private String userName; // 用户名称

    @Column(name = "user_sex", length = 2)
    private String userSex; // 用户性别

    @Column(name = "user_phone", length = 11)
    private String userPhone; // 用户手机号码

    @Column(name = "user_avatar", length = 255)
    private String userAvatar; // 用户头像

    @Column(name = "user_create_time")
    private Date userCreateTime;

    @Column(name = "user_idcare", length = 255)
    private String userIdcare;
}
